package com.action.nullobjectpattern.dome1.controller;

import com.action.nullobjectpattern.dome1.factory.CustomerFactory;
import com.action.nullobjectpattern.dome1.serivce.AbstractCustomer;

/**
 * @author：ZDY
 * @Date：Created in 2020/12/1
 * @Description:
 */


public class controller {
    public static void main(String[] args) {

        AbstractCustomer customer1 = CustomerFactory.getCustomer("Rob");
        AbstractCustomer customer2 = CustomerFactory.getCustomer("Bob");
        AbstractCustomer customer3 = CustomerFactory.getCustomer("Julie");
        AbstractCustomer customer4 = CustomerFactory.getCustomer("Laura");

        System.out.println("Customers");
        System.out.println(customer1.getName());
        System.out.println(customer2.getName());
        System.out.println(customer3.getName());
        System.out.println(customer4.getName());
    }
}